<template>example-api</template>
<script setup>
import { example1, example2 } from '@/api/example'
import { userLogin, userLogout } from '@/api/account'
import {
  addUser,
  deleteUser,
  getUser,
  editUser,
  publishUser,
  userList,
  checkUser,
} from '@/api/user'
import {
  importDB,
  exportDB,
  createFolder,
  uploadFile,
  downloadFile,
  copyFile,
  renameFile,
  getFileInfoList,
} from '@/api/db'
// import { useAccountStore } from '@/stores/account'

// example1()
// example2().then(res => {
//   console.log('example2')
//   console.log(res)
// })
// let userInfo = useAccountStore()
// console.log('getToken', userInfo.getToken)

getFileInfoList().then(res => {
  console.log('getFileInfoList')
  console.log(res)
})
userList().then(res => {
  console.log('userList')
  console.log(res)
})
userLogin().then(res => {
  console.log('userLogin')
  console.log(res)
})

getUser(55).then(res => {
  console.log('getUser')
  console.log(res)
})
checkUser(55).then(res => {
  console.log('checkUser')
  console.log(res)
})
deleteUser(55).then(res => {
  console.log('deleteUser')
  console.log(res)
})
</script>
